<h1>Editing person</h1>

<%= error_messages_for :person %>

<% form_for(:person, :url => person_path(@person), :html => { :method => :put }) do |f| %>
  <p>
    <b>Type</b><br />
    <%= f.text_field :type %>
  </p>

  <p>
    <b>First contact</b><br />
    <%= f.date_select :first_contact %>
  </p>

  <p>
    <b>School</b><br />
    <%= f.text_field :school %>
  </p>

  <p>
    <b>Name</b><br />
    <%= f.text_field :name %>
  </p>

  <p>
    <b>Parent name</b><br />
    <%= f.text_field :parent_name %>
  </p>

  <p>
    <b>Case manager</b><br />
    <%= f.text_field :case_manager %>
  </p>

  <p>
    <b>Victimization type</b><br />
    <%= f.text_field :victimization_type %>
  </p>

  <p>
    <b>Primary crime</b><br />
    <%= f.text_field :primary_crime %>
  </p>

  <p>
    <b>All crimes involved</b><br />
    <%= f.text_field :all_crimes_involved %>
  </p>

  <p>
    <b>Is parent?</b><br />
    <%= f.check_box :is_parent? %>
  </p>

  <p>
    <b>Met with cm?</b><br />
    <%= f.check_box :met_with_cm? %>
  </p>

  <p>
    <b>Number of children</b><br />
    <%= f.text_field :number_of_children %>
  </p>

  <p>
    <b>Children names</b><br />
    <%= f.text_field :children_names %>
  </p>

  <p>
    <b>Followup provided?</b><br />
    <%= f.check_box :followup_provided? %>
  </p>

  <p>
    <b>Birthday</b><br />
    <%= f.date_select :birthday %>
  </p>

  <p>
    <b>Gender</b><br />
    <%= f.text_field :gender %>
  </p>

  <p>
    <b>Ethnic group</b><br />
    <%= f.text_field :ethnic_group %>
  </p>

  <p>
    <b>Relationship to perp</b><br />
    <%= f.text_field :relationship_to_perp %>
  </p>

  <p>
    <b>Underserved population</b><br />
    <%= f.text_field :underserved_population %>
  </p>

  <p>
    <b>City</b><br />
    <%= f.text_field :city %>
  </p>

  <p>
    <b>Zip code</b><br />
    <%= f.text_field :zip_code %>
  </p>

  <p>
    <b>Language</b><br />
    <%= f.text_field :language %>
  </p>

  <p>
    <b>Financial status</b><br />
    <%= f.text_field :financial_status %>
  </p>

  <p>
    <b>Has transportation</b><br />
    <%= f.check_box :has_transportation %>
  </p>

  <p>
    <b>Medications</b><br />
    <%= f.text_area :medications %>
  </p>

  <p>
    <b>Injuries</b><br />
    <%= f.text_area :injuries %>
  </p>

  <p>
    <b>Special accomodations</b><br />
    <%= f.text_area :special_accomodations %>
  </p>

  <p>
    <b>Created on</b><br />
    <%= f.datetime_select :created_on %>
  </p>

  <p>
    <b>Updated at</b><br />
    <%= f.datetime_select :updated_at %>
  </p>

  <p>
    <%= submit_tag "Update" %>
  </p>
<% end %>

<%= link_to 'Show', person_path(@person) %> |
<%= link_to 'Back', people_path %>